Conditions | 2 |
Paths | 2 |
Total Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | Mivhak.component('live-preview', { |
||
28 | createScript: function(content,src) { |
||
29 | if(src) return '<script src="'+src+'" type="text/javascript"></script>'; |
||
30 | return '<script>\n//<![CDATA[\nwindow.onload = function(){'+content+'};//]]>\n</script>'; // @see http://stackoverflow.com/questions/66837/when-is-a-cdata-section-necessary-within-a-script-tag |
||
31 | }, |
||
32 | createStyle: function(content,href) { |
||
52 | }); |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.